// COM_TEST.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"

#include "MyWin.h"

int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hInstPrev,
				   LPSTR szCmdLine, int nCmdShow)
{
	//_Module.Init(NULL, hInst);

	CMyWindow wndMain;
	MSG msg;

	// Create & show our main window
	if ( NULL == wndMain.Create ( NULL, CWindow::rcDefault, 
		_T("My First ATL Window") ))
	{
		// Bad news, window creation failed
		return 1;
	}

	wndMain.ShowWindow(nCmdShow);
	wndMain.UpdateWindow();

	// Run the message loop
	while ( GetMessage(&msg, NULL, 0, 0) > 0 )
	{
		TranslateMessage(&msg);
		DispatchMessage(&msg);
	}

	//_Module.Term();
	return msg.wParam;
}

